﻿@model RTW.OA.Areas.Personal.Models.AddressViewModel
@{
    Layout = null;
}

<div style="height:500px;overflow-y:auto;overflow-x:hidden;">
    @if (Model.Address_Group != null && Model.Address_Group.GROUP_ID > 0)
    {
        <p id="groupname" name="@Model.Address_Group.GROUP_ID">@Model.Address_Group.GROUP_NAME</p>
        @Html.HiddenFor(m =>m.Address_Group.GROUP_ID)
    }
    else
    {
        <p id="groupname" name="默认组">默认组</p>
        <input id="Address_Group_GROUP_ID" value="default" hidden="hidden" />
    }
    <ul class="namelist">
        @if (Model.AddressLists != null && Model.AddressLists.Any())
        {
            foreach (var item in Model.AddressLists)
            {
                <li onclick="show_add(@item.ADD_ID, @item.GROUP_ID);" title="@item.PSN_NAME">
                    <a>@item.PSN_NAME</a>
                    <span style="cursor: pointer;">
                        <img src="~/Content/img/address/man_s.png" style="height:41px;width:41px;">
                    </span>
                </li>
            }
        }
        else
        {
            <li style="text-align:center;color:red;">查无资料！</li>
        }
    </ul>
</div>